package StructuralPattern.Decoration.Crypto;

public class Client {
    public static void main(String[] args) {
        Crypto crypto = new Word_Crypto();
        Crypto second_crypto = new Reverse_Crypto(crypto);
        Crypto third_crypto = new Mod_Crypto(second_crypto);
        third_crypto.encrypt();

        System.out.println("另一种解密方法：");

        Crypto s_crypto = new Word_Crypto();
        Crypto s_second_crypto = new Reverse_Crypto(s_crypto);
        Crypto s_third_crypto = new Mod_Crypto(s_second_crypto);
        third_crypto.encrypt();


    }
}
